package com.picket.dao;

import java.util.Collection;
import java.util.List;

import com.picket.domain.Match;
import com.picket.domain.UserPrediction;

public interface IUserPredictionDao {

	public void create(final List<UserPrediction> predictions) ;
	
	public Collection<UserPrediction> getAllUserPredictions();
	
	//public Collection<UserPrediction> getAllUserPredictionsForEvent(long eventId);
	
	public UserPrediction getUserPrediction(long id);

	public Collection<UserPrediction> getAllUserPredictionsForUserPool(long userPoolId);
	public Collection<UserPrediction> getAllUserPredictionsForUserPoolOrderedByMatchNo(long userPoolId);
	

	public Collection<UserPrediction> getAllUserPredictionsForMatrix(long matchId);

	Collection<UserPrediction> updatePredictions(List<String> userPredictions,
			long userPoolId) throws Exception;
	
	public void updatePredictionsWithPoints(Match match);
}
